.wrap {
    width: 750px;
    min-height: 100vh;
}

.bg-contain {
    background-size: contain;
    background-repeat: no-repeat;
}
.container {
    @extend .wrap;
    box-sizing: border-box;
    background-position: bottom;
    background: linear-gradient(
        0deg,
        #b26259 1%,
        rgba(183, 106, 94, 0.25) 100%
    );
    position: relative;
    background-image: url('/assets/images/cats-eat-fish/bg.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: bottom;

    .btn {
        width: 79px;
        height: 92px;
        position: absolute;
        right: 42px;
        color: white;
        font-size: 32px;
        font-weight: 600;
        line-height: 40px;
        padding: 18px 14px;
        text-align: center;
        background-repeat: no-repeat;
        background-size: contain;
        z-index: 1;
    }
    .btn1 {
        top: 183px;
        background-image: url('/assets/images/cats-eat-fish/btn-rule.png');
    }
    .btn2 {
        top: 334px;
        background-image: url('/assets/images/cats-eat-fish/btn-record.png');
    }

    .title {
        width: 395px;
        height: 340px;
        background-image: url('/assets/images/cats-eat-fish/title.png');
        @extend .bg-contain;
        position: absolute;
        top: 88px;
        left: 230px;
    }

    .bubble {
        position: absolute;
        top: 158px;
        left: 47px;
        .bubble_img {
            width: 144px;
            height: 125px;
            background-image: url('/assets/images/cats-eat-fish/bubble.png');
            @extend .bg-contain;
            background-size: 120%;
        }
        .bubble_text {
            background-image: url('/assets/images/cats-eat-fish/btn-blue.png');
            width: 156px;
            height: 38px;
            background: linear-gradient(0deg, #0f78d2 0%, #00bee2 100%);
            border-radius: 19px;
            border: 2px solid #ffffff;
            @extend .bg-contain;
            line-height: 38px;
            text-align: center;

            font-weight: 400;
            font-size: 20px;
            color: #ffffff;
        }
    }
    .changeRecord {
        width: 90px;
        height: 80px;
        background-image: url('/assets/images/cats-eat-fish/btn-change.png');
        @extend .bg-contain;
        position: absolute;
        top: 100px;
        left: 31px;
    }
    .barrageBox {
        position: absolute;
        bottom: 970px;
        left: 50%;
        transform: translateX(-50%);
        .barrage {
            background-repeat: no-repeat;
            background-size: cover;
            width: 397px;
            height: 132px;
            padding: 30px 30px 30px 40px;
            font-size: 24px;
        }
        .barrage1 {
            background-image: url('/assets/images/cats-eat-fish/barrage.png');
            color: #de682c;
        }
        .barrage2 {
            background-image: url('/assets/images/cats-eat-fish/barrage2.png');
            color: #c33c6e;
        }
        .barrage3 {
            background-image: url('/assets/images/cats-eat-fish/barrage1.png');
            color: #bf2640;
        }
        .barrageFish {
            width: 316px;
            height: 51px;
            background: rgba(255, 241, 223, 0.8);
            border-radius: 26px;
            border: 2px solid rgba(255, 105, 25, 0.73);
            font-size: 24px;
            color: #de682c;
            text-align: center;
            line-height: 51px;
            animation: moveUp 1s ease-in-out forwards;
            animation-fill-mode: forwards; /* 使动画结束后保持最后一帧的状态 */
            > img {
                width: 44px;
                height: 30px;
                vertical-align: sub;
            }
        }
        .barrage4 {
            margin-left: -80px;
        }
        .barrage5 {
            margin-left: 80px;
        }

        @keyframes moveUp {
            0% {
                transform: translateY(0);
                opacity: 1;
            }
            50% {
                transform: translateY(-80px);
                opacity: 1;
            }
            80% {
                transform: translateY(-80px);
                opacity: 1;
            }
            100% {
                opacity: 0;
                transform: translateY(-80px);
            }
        }
    }

    .cat {
        position: absolute;
        // top: 60%;
        bottom: 310px;
        left: 50%;
        transform: translateX(-50%);
        > img {
            width: 750px;
            // height: 538px;
        }
    }

    .bottomBox {
        width: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        .progress {
            width: 590px;
            height: 40px;
            // background-image: url("/assets/images/cats-eat-fish/progress-outter.png");
            // background-repeat: no-repeat;
            // background-size: 100% 100%;
            margin-bottom: 30px;
            // position: relative;
            overflow: hidden;
            padding: 0px 6px;
            background: #ffb254;
            border-radius: 24px;
            border: 6px solid #ffecd0;
            .progress_bar {
                // width: 50%;
                height: 100%;
                border-radius: 24px;
                background-image: url('/assets/images/cats-eat-fish/progress-inner.png');
                background-repeat: no-repeat;
                background-size: cover;
                // margin-bottom: 38px;
                // position: absolute;
                // left: 0;
                // top: 0;
                transition: width 0.8s ease;

                // 应用动画
                animation: scrollBackground 5s linear infinite;

                // 定义背景图滚动动画
                @keyframes scrollBackground {
                    0% {
                        background-position: 100% 0;
                    }
                    100% {
                        background-position: 0 0;
                    }
                }
            }
            .progress_text {
                font-size: 24px;
                color: #1d521c;
                position: absolute;
                left: 50%;
                top: 2px;
                transform: translateX(-50%);
            }
        }

        .fish {
            display: flex;
            margin-bottom: 19px;
            > div {
                width: 87px;
                height: 60px;
                background-image: url('/assets/images/cats-eat-fish/fish.png');
                @extend .bg-contain;
                margin: 0 6px;
            }
        }

        .autoBox {
            display: flex;
            font-size: 24px;
            margin-bottom: 23px;

            .checkbox {
                :global {
                    .rv-checkbox__icon {
                        background-color: #fbddb3;
                        border: 1px solid #e9611b;
                    }
                    .rv-checkbox__label {
                        color: #fbddb3;
                    }
                }
            }
            .countBox {
                color: #feffff;
                margin-left: 31px;
                .step {
                    background-color: #fbddb3;
                    border: 1px solid #e9611b;
                    border-radius: 20px;
                    margin-left: 14px;
                    // width: 126px;
                    height: 36px;
                    background: #fbddb3;

                    // :global {
                    //   .rv-stepper__input:disabled {
                    //     color: #e9611b;
                    //   }
                    // }
                    input {
                        color: #e9611b;
                        width: 50px !important;
                        height: 36px !important;
                    }

                    button {
                        width: 32px !important;
                        height: 32px !important;
                        background: #f89f2f;
                        border-radius: 50%;
                        color: white;
                        border: none;
                    }
                }
            }
        }

        .subBtn {
            width: 240px;
            height: 69px;
            background-image: url('/assets/images/cats-eat-fish/btn-sub.png');
            @extend .bg-contain;

            font-size: 28px;
            color: #feffff;
            text-align: center;
            line-height: 69px;
            margin-bottom: 24px;
            font-weight: 800;
            span {
                font-size: 24px;
            }
        }
        .disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .bottom {
            display: flex;
            align-items: center;
            justify-content: space-around;
            margin-bottom: 32px;
            .diamond {
                color: #ffffff;
                font-size: 24px;
                img {
                    width: 32px;
                    height: 24px;

                    vertical-align: middle;
                    margin-right: 5px;
                }
                margin: 0 26px;
            }
            .charge {
                font-weight: 400;
                font-size: 24px;
                color: #ffe34c;
                text-decoration-line: underline;
            }
        }
    }

    .messageBox {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        z-index: 2;
        .message {
            width: 580px;
            padding: 40px;
            background-color: white;
            border-radius: 10px;
            > p {
                padding: 20px;
                margin-bottom: 0;
                span {
                    color: #e014b5;
                }
            }
            > div {
                color: #e014b5;
                text-align: right;
                // height: 80px;
                line-height: 80px;
            }
        }
    }
}
.questionWrap,
.questionWrap1 {
    @extend .wrap;
    position: relative;
    width: 100%;
    img {
        width: 100%;
    }
}
.questionWrap {
    width: 750px;
    height: 90vh;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    .btn_back {
        width: 70px;
        height: 70px;
        position: absolute;
        top: 67px;
        left: 42px;
        font-size: 48px;
    }
    .content_box {
        > img {
            width: 400px;
            position: relative;
            left: 50%;
            transform: translateX(-50%);
        }
    }
    .ruleDetail {
        width: 690px;
        height: 1060px;
        background: linear-gradient(0deg, #fdf8e8 0%, #fff1c1 100%);
        border-radius: 45px;
        border: 2px solid rgba(255, 105, 25, 0.73);
        margin: 0 auto;
        padding: 64px 48px;

        > P {
            font-weight: 400;
            font-size: 26px;
            color: #753711;
            line-height: 42px;
            margin-bottom: 12px;
        }
    }

    .rank_box {
        width: 690px;
        height: 80vh;
        background: linear-gradient(0deg, #fdf8e8 0%, #fff1c1 100%);
        border-radius: 45px;
        border: 2px solid rgba(255, 105, 25, 0.73);
        margin: 0 auto;
        padding: 64px 48px;
        overflow-y: auto;

        .rank_list {
            width: 100%;
        }

        .td_box {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 60px;

            .user {
                flex: 1;
                display: flex;
                align-items: center;
                color: #99694b;
                > img {
                    width: 100px;
                    height: 100px;
                    border-radius: 50%;
                    background: white;
                    margin-right: 19px;
                }

                .nickname {
                    max-width: 272px;
                    font-size: 32px;
                    color: #99694b;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    font-weight: 400;
                    line-height: 36px;
                }
                .score {
                    font-size: 28px;
                }
                .time {
                    font-size: 24px;
                }
            }
            .rankBtn {
                div {
                    font-size: 28px;
                    color: #753711;
                    text-align: right;
                }
            }
        }

        .image {
            width: 200px;
            position: absolute;
            right: 10px;
            bottom: 0;
        }
    }
}

.giftWrap {
    .messageBox {
        width: 546px;
        background-color: linear-gradient(0deg, #fcf2cf 0%, #fbe186 100%);
        border-radius: 45px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        @extend .bg-contain;
    }
    .bgS {
        height: 636px;
        background-image: url('/assets/images/cats-eat-fish/bg-success.png');
    }
    .bgF {
        height: 576px;
        background-image: url('/assets/images/cats-eat-fish/bg-fail.png');
    }

    .giftContent {
        text-align: center;
        padding-top: 100px;

        .p1 {
            font-weight: 400;
            font-size: 28px;
            color: #d16f34;
        }
        .gift {
            width: 220px;
            height: 220px;
            border-radius: 24px;
            border: 6px solid #ffebcf;
            margin-top: 24px;
        }
        .p2 {
            font-weight: 400;
            font-size: 28px;
            color: #753711;
            line-height: 34px;
        }
        .btn {
            width: 239px;
            height: 79px;
            border-radius: 45px;
            background-image: url('/assets/images/cats-eat-fish/btn-sure.png');
            @extend .bg-contain;
            margin: 0 auto;
            margin-top: 29px;
        }
    }
}

.dialog {
    background-color: transparent;
}
.messageBox1 {
    width: 546px;
    height: 636px;
    background-image: url('/assets/images/cats-eat-fish/bg-success.png');
    background-color: linear-gradient(0deg, #fcf2cf 0%, #fbe186 100%);
    border-radius: 45px;
    @extend .bg-contain;
    margin: 0 auto;

    .giftContent {
        text-align: center;
        padding-top: 100px;

        .gift {
            width: 220px;
            height: 220px;
            border-radius: 24px;
            // border: 6px solid #ffebcf;
            margin-top: 24px;
        }
        .p2 {
            font-weight: 400;
            font-size: 28px;
            color: #753711;
            line-height: 34px;
        }
        .btn {
            width: 239px;
            height: 79px;
            border-radius: 45px;
            background-image: url('/assets/images/cats-eat-fish/btn-sure.png');
            @extend .bg-contain;
            margin: 0 auto;
            margin-top: 29px;
        }
    }
}
:global {
    .rv-popup__close-icon {
        // background-color: red;
        width: 240px;
        height: 80px;
        // bottom: 150px;
        top: 500px !important;
        left: 50%;
        transform: translateX(-50%);
    }
}

.close {
    // background-color: red;
    // width: 120px;
    // height: 50px;
    // bottom: 100px;
    // top: auto;
    // left: 50%;
    // transform: translateX(-50%);
}
